<html><!-- Created using the cpp_pretty_printer from the dlib C++ library.  See http://dlib.net for updates. --><head><title>dlib C++ Library - sse4_test.cpp</title></head><body bgcolor='white'><pre>

<font color='#0000FF'>#include</font> <font color='#5555FF'>&lt;</font>xmmintrin.h<font color='#5555FF'>&gt;</font>
<font color='#0000FF'>#include</font> <font color='#5555FF'>&lt;</font>emmintrin.h<font color='#5555FF'>&gt;</font>
<font color='#0000FF'>#include</font> <font color='#5555FF'>&lt;</font>mmintrin.h<font color='#5555FF'>&gt;</font>
<font color='#0000FF'>#include</font> <font color='#5555FF'>&lt;</font>pmmintrin.h<font color='#5555FF'>&gt;</font> <font color='#009900'>// SSE3
</font><font color='#0000FF'>#include</font> <font color='#5555FF'>&lt;</font>tmmintrin.h<font color='#5555FF'>&gt;</font>
<font color='#0000FF'>#include</font> <font color='#5555FF'>&lt;</font>smmintrin.h<font color='#5555FF'>&gt;</font> <font color='#009900'>// SSE4
</font>
<font color='#0000FF'><u>int</u></font> <b><a name='main'></a>main</b><font face='Lucida Console'>(</font><font face='Lucida Console'>)</font>
<b>{</b>
    __m128 x;
    x <font color='#5555FF'>=</font> <font color='#BB00BB'>_mm_set1_ps</font><font face='Lucida Console'>(</font><font color='#979000'>1.23</font><font face='Lucida Console'>)</font>;
    x <font color='#5555FF'>=</font> <font color='#BB00BB'>_mm_ceil_ps</font><font face='Lucida Console'>(</font>x<font face='Lucida Console'>)</font>;
    <font color='#0000FF'>return</font> <font color='#979000'>0</font>;
<b>}</b>

<font color='#009900'>// ------------------------------------------------------------------------------------
</font>

</pre></body></html>